//
//  AppDelegate.h
//  Cidney
//
//  Created by Chris Karr on 1/8/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "AMSerialPort.h"

@interface AppDelegate : NSObject 
{
	IBOutlet NSTextView * rcvText;

	IBOutlet NSArrayController * devices;
	IBOutlet NSArrayController * callController;
	
	AMSerialPort * port;
	NSTimer * hookTimer;
	
	IBOutlet NSMenu * menu;
	NSStatusItem * theItem;
	
	IBOutlet NSWindow * calls;
	IBOutlet NSWindow * preferences;
	IBOutlet NSWindow * filters;
	IBOutlet NSWindow * caller;
	
	IBOutlet NSTableView * callLog;
	
	IBOutlet NSPredicateEditor * filterEditor;
}

@property(retain) NSTimer * hookTimer;
@property(retain) NSStatusItem * theItem;

- (IBAction) toggleCalls:(id) sender;
- (IBAction) togglePreferences:(id) sender;
- (IBAction) toggleFilters:(id) sender;
- (IBAction) toggleCaller:(id) sender;

@end
